package controlLayer;

import dbLayer.DBTables;
import dbLayer.IFDBTables;

public class TableCtr implements IFDBTables{

	protected IFDBTables dbTables;
	public TableCtr()
	{
		dbTables = new DBTables();
	}
	@Override
	public int createAllTables() throws Exception
	{
		return dbTables.createAllTables();
	}
	@Override
	public int dropAllTables() throws Exception {
		return dbTables.dropAllTables();
	}
	@Override
	public int exportTables() throws Exception {
		return dbTables.exportTables();
	}
	@Override
	public int importTables(String path) throws Exception {
		return dbTables.importTables(path);
	}
	@Override
	public boolean checkTables() {
		return dbTables.checkTables();
	}
	@Override
	public String getSqlFromFile(String path) throws Exception {
		return dbTables.getSqlFromFile(path);
	}
}
